#!/bin/bash

#set -xv


if [ $# != 1 ] ; then 
    echo "USAGE: $0 findstring" 
    exit 1;
fi 
# find . -name "*.[h|c]" -o -name "*.cpp" -o -name "*.hpp" -o -name "*.hxx" -o -name "*.cc" | xargs grep --color=auto -wFRn $1
# find . -name "*.sql"  | xargs grep --color=auto -wFRn $1
# find . -path ./node_modules  -prune -o -type f -name  *.ts  -print | xargs grep --color=auto -wFRn $1
# find . -name *.c | xargs grep --color=auto -wFRn $1 
# find . -name "*.[h|c]" -o -name "*.cpp" | xargs grep --color=auto -wFRn $1 
# find . -name *.h | xargs grep --color=auto -wFRn $1 
 find . -name "*.h" -o  -name "*.hpp" -o  -name "*.cpp" -o  -name "*.gn" -o -name "*.cc" -o -name "*.c" -o -name "*.sql"  -o -name "*.go"| xargs grep --color=auto -wFRn $1


